package cn.com.sparkle.paxos.net.factory;

import com.google.protobuf.GeneratedMessage;

public abstract class PaxosSession {
	private Object attachment;
	public void attach(Object object){
		this.attachment = object;
	}
	public Object attachment(){
		return attachment;
	}
	public abstract void write(GeneratedMessage message) throws NetCloseException;
	public abstract void closeSession();
}
